//
//  main.m
//  Day7
//
//  Created by wenjim on 17/10/14.
//  Copyright © 2017年 WenJim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Student.h"
#import "Teacher.h"

int main(int argc, const char * argv[]) {
    
    Person * p = [[Person alloc] init];
    
//    [p playFootBall];
    [p playFootball];
    [p playBasketball];
    [p playBaseball];
    
    
    Student * s = [[Student alloc] init];
    
    [s playFootball];
    [s playBasketball];
    [s playBaseball];
    
    Teacher * t = [[Teacher alloc] init];
    
    [t playFootball];
    [t playBasketball];
    
    return 0;
}
